cPanel Config

Loan Manager

levitraCialisZappos

Welcome to cPanelConfig the fastest growing cPanel configuration and troubleshooting guide on the internet. Please take the time and register. We would love to have your contribution to this completely free cPanel resource. We are updating this daily so be sure to visit us on a regular basis.

Enabling quotas

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Posted by yolau

In this article I will explain how to enable quotas on a cpanel server.
Recently I had to setup a cpanel server that didn’t have quotas enabled by default.
What is the result of a server without quotas?
Simple. All accounts will have unlimited diskspace.

How to fix this?
First of all you will have to login to your server using ssh.

  1. You first have to edit /etc/fstab
  2. nano /etc/fstab

  3. Locate the line that looks something like
  4. LABEL=/1 / ext3 defaults 1 1

  5. Add after “defaults” the word “usrquota”. It should look something like
  6. LABEL=/1 / ext3 defaults,usrquota 1 1

  7. Save and exit
  8. Remount the / partition
  9. mount -o remount /

  10. Now run the cpanel script to fixquotas
  11. /scripts/fixquotas

That’s it! Now all you cpanel accounts should have a limited disk space that you setup.

If you have any questions or problems don’t hesitate to leave a message.

Share this:
  • Digg
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • De.lirio.us
  • Furl
  • MyShare
  • Smarking
  • Technorati
  • YahooMyWeb

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 Responses to “Enabling quotas”

  1. haha ^^ nice, is there a section to follow the RSS feed

  2. goood thanks you write godd

  3. I have encountered this problem of no quotas (or more that quotas are showing as infinite) being enabled, however this solution does not resemble my setup.

    I’m running Cpanel on a Centos5 based VPS, and can locate 3 fstab files (”/etc/fstab” & “/etc/fstab.quotas” & “/etc/fstab,v”), but none of these files contains anything like what is suggested above.

    For the record, these files (fstab and fstab.quotas) show
    none /dev/pts devpts rw 0 0

    I’ll continue investigating this problem and report back if I find a solution, if not, I’d be keen to hear how anyone else has resolved this problem.

    Kind regards,
    Carl.

Leave a Reply